//fliename:Jiecheng.java
  public class Jiecheng
{
   public static void main(String[]args)
{
   int i=1,n=0,s=1;
   for(i=1;i<=10;i++)
  { s=s*i;
  n+=s ;}
   System.out.println("Sum=1!+2!+3!+4!+5!+6!+7!+8!+9!+10!"+"="+n);
}} 